Repository navigation
CHANGELOG.md is the release's: notes live in PR descriptions, and CI ignores the file - #2697
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 1, 2026 23:43
…ts description CHANGELOG.md is left out of every decision of scripts/ci-changes.ts, and a merge group that changes nothing else runs nothing. A new release note check, part of verify, refuses a pull request that changes CHANGELOG.md (other than the release's own), has no note under ## Changelog, or deprecates part of the API without naming it there. Editing the description re-runs it.
Create release PR reads the note under ## Changelog in the description of every pull request merged since the previous stable release, merges them by heading with Before upgrading first, and writes the section. Lines still under Unreleased come first, pull requests merged before this flow need no note there, and the release's own pull requests are skipped. A missing or unreadable note stops the run naming the pull request, and so does a deprecation the changelog would not list. A candidate writes its notes under Unreleased; a later candidate or the final reads what was there from the commit the first candidate was cut from. Tested against the real 1.2.6 release.
…signing workflows Docs were already skipped on pull requests unless a test named them. Now: a test's fixture and docs/cosign.pub are code whatever their names, the phone app's AGENTS.md no longer runs its type check, a merge group of docs runs only the tests that name them, and Markdown no longer starts the Desktop and signing workflows. Each kind was checked against every test, script, build, lint and workflow, and the rule is tested against this tree's files.
…all of CI the read it asks for
davidmckayv
force-pushed
the
ci/changelog-is-the-releases
branch
from
December 2, 2026 01:39
170cf82 to
1b96e8f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
CHANGELOG.md is now written by the release and nothing else, and CI never reacts to it, nor to other prose nothing reads.
Release notes live in the PR description. Each PR carries its note under
## Changelog, grouped under a bold heading the way CHANGELOG.md is (**API.**,**Before upgrading.**, ...), ornone. The PR template now says so.A check enforces it. CI's new
release notejob, part ofverify(still the only required check), fails a PR that changes CHANGELOG.md, has no note, or deprecates part of the API without naming it in the note with its sunset. The release's own PRs (opened bygithub-actions[bot]fromrelease/publish/v*,merge-back/v*ormain-images/v*in this repo) may write CHANGELOG.md. The check runs last and reads the description then; editing the description after the run re-runs it (release-note-edited.yml).The release writes the section. Create release PR collects the notes of every PR merged since the previous stable release and writes that version's section in today's format, so open.bot/changelog and the announcements read it unchanged. Whatever is under
## Unreleasedon main today is folded into 1.2.8's section, so no note is lost; PRs merged before this flow need no note. A missing or unreadable note stops the release naming the PR (edit that PR's description and run it again), and so does a spec deprecation the changelog would leave out.CI ignores CHANGELOG.md.
scripts/ci-changes.tsleaves it out of every decision: a PR's CHANGELOG.md change runs nothing (not even the tests that name it), and a merge group that changes only CHANGELOG.md runs no job, image builds included.verifystill reports.Prose nothing reads runs nothing. What CI skips, and why each is safe (checked against every test, script, build, lint, Dockerfile and workflow in the tree):
CHANGELOG.md**/*.md(docs, READMEs, AGENTS.md/CLAUDE.md, PR template)docs/**pictures (svg, png, jpg, gif, webp).claude/**(agent skills)LICENSE,.github/CODEOWNERS,.github/ISSUE_TEMPLATE/**Still checked: a doc a test names by path runs that test (
docs/agent-frameworks.mdrunstests/agent-frameworks-receivers.test.ts);api/**Markdown runs the API job (the accepted breaking changes);docs/cosign.pub(the release signature key) anddocs/telemetry-queries.sqlare code; a test fixture is code whatever its extension;.editorconfigis code (Biome formats by it). Fixed along the way:mobile/AGENTS.mdno longer runs the phone app's type check, a merge group of docs runs only the tests that name them, and Markdown no longer starts the Desktop workflow or the macOS/Windows signing dry runs (docs/releasing.mdanddocs/windows-signing.mdwere triggers).The deprecation-in-changelog test moves.
shared/tests/api-deprecations.test.tsno longer reads CHANGELOG.md; the same rule is held on the PR's note and again when the release is prepared.Not added:
CHANGELOG.md merge=union. GitHub's server-side merges and mergeability check ignore custom merge attributes, and with no PR editing the file there is nothing left to conflict.Where it runs
CI and the release workflows only. No server, app or database change.
Boundary and audit
API and database
api/but the README's deprecation steps, no app's requests, no database change and norelease-policy.json.Changelog
none
Proof
Tests:
scripts/ci-changes.test.ts(CHANGELOG.md alone runs nothing; beside #2654's real files it adds nothing; this tree's real docs, key, fixtures and API Markdown classified; merge groups decided with the realgit grepof the tests),scripts/release-note-check.test.ts(#2654's real description and CHANGELOG lines, release v1.2.7's PR #2648, the real spec's deprecations), andscripts/release-collect-notes.test.ts(release 1.2.6 rebuilt from its real PRs). Throwaway PRs on GitHub: linked in the comments.